<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_search_header.php 9755 2008-09-19 19:47:22Z ajeh $
 */
  $content = "";
  $content = '<div style="width:580px; float:left;">';
  $content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get');
  $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
  $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
//
//  if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
//    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
//  } else {
//    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;<input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';
//  }
  
  $content .='
<table width="570" cellspacing="0" cellpadding="0" border="0">
	<tbody><tr>
<td width="40">' . BOX_HEADING_SEARCH . '</td>
		<td width="190">'.  zen_draw_pull_down_menu('categories_id', zen_get_topcategories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)), '0' ,'', '1'), $sData['categories_id'],'id="SearchBoxCategory"') .'		
		</td>
		<td width="310">
			<div class="sch-text-box">
				<div class="sch-auto-complete" id="AutoCompleteDiv"></div>'.zen_draw_input_field('keyword', '', 'autocomplete="off" class="SearchBoxTbx"  id="SearchBoxQueryTbx" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"').'	
			</div>
		</td>
		<td width="30" align="right">
			<input type="image" value="Search" name="Search" src="'.$template->get_template_dir('efc_search_btn.gif', DIR_WS_TEMPLATE, $current_page_base, 'images/').'efc_search_btn.gif" id="EfcSearchBtn" class="img-button">
		</td>
	</tr>
</tbody></table>


<div id="TestImageDiv" style="display: none;"></div>';

  $content .= "</form></div>";
   $content .='<div class="head_cart"><a href="'.zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL').'" >'. HEADER_TITLE_CART_CONTENTS.'</a></div>';  

?>